﻿package mortal.game.view.FirstRechargeDay500.rechargeDaily
{
    import com.gengine.resource.*;

    public class RechargeDailyConfig extends Object
    {
        public var dayGiftDic:Object;
        private static var _instance:RechargeDailyConfig;

        public function RechargeDailyConfig()
        {
            this.dayGiftDic = {};
            this.init();
            return;
        }// end function

        private function init() : void
        {
            var _loc_1:* = ConfigManager.instance.getJSONByFileName("t_everyday_recharge_rewards.json");
            this.writeTTarget(_loc_1);
            return;
        }// end function

        private function writeTTarget(param1:Object) : void
        {
            var _loc_2:* = param1 as Array;
            var _loc_3:int = 0;
            while (_loc_3 < _loc_2.length)
            {
                
                param1 = _loc_2[_loc_3];
                this.dayGiftDic[param1.day] = param1;
                _loc_3++;
            }
            return;
        }// end function

        public static function instance() : RechargeDailyConfig
        {
            if (_instance == null)
            {
                _instance = new RechargeDailyConfig;
            }
            return _instance;
        }// end function

    }
}
